<template>
  <div class="home">

    <div class="main">
      <h1 id="text">图书管理系统</h1>
      <div class="btn">
        <button @click="showLign">读者系统</button>
        <button @click="showLign">管理者系统</button>
      </div>
    </div>

  </div>
</template>

<script setup>
</script>

<style>
.home {
  width: 1024px;
  height: 800px;
  background-image: url(" ../../public/home.png");
  background-size: cover;
  background-repeat: no-repeat;
  position:
    relative;
}

.main {
  width: 100%;
  height: 300px;
  position: absolute;
  top: 250px;
}

#text {
  font-size: 90px;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 500;
}

.btn {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.btn button {
  padding: 12px 36px;
  font-size: 18px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: white;
}
</style>
